home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / nos042_s / files.h < prev    next >
C/C++ Source or Header  |  1994-09-16  |  3KB  |  60 lines

  1. /*****************************************************************************
  2. *    ATARI Version by David Nash - dnash@chaos.demon.co.uk
  3. *
  4.     Added Newsqdir & Newsqueue entries
  5. *****************************************************************************/
  6.  
  7. #ifndef    _FILES_H
  8. #define    _FILES_H
  9.  
  10. /* Permission bits in FTPUSERS file */
  11. #define    FTP_READ    1    /* Read files */
  12. #define    FTP_CREATE    2    /* Create new files */
  13. #define    FTP_WRITE    4    /* Overwrite or delete existing files */
  14. #define AX25_CMD    8    /* AX.25 gateway operation allowed */
  15. #define TELNET_CMD    16    /* Telnet gateway operation allowed */
  16. #define NETROM_CMD    32    /* NET/ROM gateway operation allowed */
  17. #define SYSOP_CMD    64    /* Remote sysop access allowed */
  18. #define EXCLUDED_CMD    128    /* This user is banned from the BBS */
  19. #define PPP_ACCESS_PRIV    0x0100    /* Priv bit for PPP connection */
  20. #define PPP_PWD_LOOKUP    0x0200    /* Priv bit for peerID/pass lookup */
  21.  
  22.  
  23. /* External definitions for configuration-dependent file names set in
  24.  * files.c
  25.  */
  26. extern char *Startup;    /* Initialization file */
  27. extern char *Userfile;    /* Authorized FTP users and passwords */
  28. extern char *Maillog;    /* mail log */
  29. extern char *Mailspool;    /* Incoming mail */
  30. extern char *Mailqdir;    /* Outgoing mail spool */
  31. extern char *Mailqueue;    /* Outgoing mail work files */
  32. extern char *Routeqdir;    /* queue for router */
  33. extern char *Alias;    /* the alias file */
  34. extern char *Dfile;    /* Domain cache */
  35. extern char *Fdir;    /* Finger info directory */
  36. extern char *Arealist;        /* List of message areas */
  37. extern char *Helpdir;        /* Mailbox help file directory */
  38. extern char *Rewritefile;    /* Address rewrite file */
  39. extern char *Newsdir;        /* News messages and NNTP data */
  40. extern char *Popusers;        /* POP2 user and passwd file */
  41. extern char *Signature;        /* Mail signature file directory */
  42. extern char *Forwardfile;    /* Mail forwarding file */
  43. extern char *Historyfile;    /* Message ID history file */
  44. extern char *Scripts;        /* PPP up/down scripts */
  45. extern char *Dscripts;     /* script directory
  46. extern char *Mailkill;        /* SMTP sender reject file */
  47.  
  48. #ifdef ATARI
  49. extern char *Newsqueue;        /* NNTP queue                    */
  50. extern char *Newsqdir;        /* NNTP queue directory        */
  51. #endif
  52.  
  53. void initroot __ARGS((char *root));
  54. char *rootdircat __ARGS((char *filename));
  55. int userlogin __ARGS((char *name,char *pass,char **path,int len,int *pwdignore));
  56. char *userlookup __ARGS((char *username, char **password, char **directory,
  57.             int *permission, int32 *ip_address));
  58.  
  59. #endif    /* _FILES_H */
  60.